package com.test;

import com.bean.Dao.Impl.UserDaoImpl;
import com.bean.Dao.UserDao;
import com.bean.User;
import org.junit.Test;

import java.util.List;

public class UserTest2 {
    @Test
    public void test01() throws Exception {
        UserDao userDao = new UserDaoImpl();
        List<User> all = userDao.findAll();
        for (User user:all) {
            System.out.println(user);
        }
        System.out.println(all);
    }
}
